#ifndef COMMONHELPER_H
#define COMMONHELPER_H
#include <QString>
#include <QDateTime>
#include <QUuid>
#include <QVariant>
#include <QVariantMap>
#include <QList>
#include <QSqlRecord>
#include <loghelper.h>

class CommonHelper{
public:
    //向外界公开一个“获取唯一可用的对象”的成员函数
    static CommonHelper* commonInstance();
    QString GetGuid();
    QString GetDateTimeStr();
    QByteArray GetSendData(QString);
    QString SixteenToTen(QString);
    QString GetCrcCheck(QString);
    QString TenToSixteen(int, int);
    QString SixteenToTwo(QString);
    QByteArray hexStringToByteArray(QString);
    void Sleep(unsigned int msec);

private:
    static CommonHelper* Instance ;
    CommonHelper();
    loghelper *logClient;
};

#endif // COMMONHELPER_H
